package com.yc.qunxing.service;

import com.yc.qunxing.entity.Drivers;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yc.qunxing.result.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 鹏哥
 * @since 2024-05-23
 */
public interface IDriversService extends IService<Drivers> {

    Result<String> registerDriver(Drivers drivers);

    boolean verifyOriginalPassword(Integer driverId, String originalPassword);

    boolean changePassword(Integer driverId, String newPassword);

    boolean changePhone(Integer driverId, String phone);

    boolean changeName(Integer driverId, String name);

    boolean sendVerificationCode(Integer driverId, String email, String code);

    boolean changeEmail(Integer driverId, String newEmail);

    List<Drivers> getDriverByManager(String keyword, String keywordOrder,String searchVehicle);
}
